import request from "@/api/index";

//购票接口
export interface buyTicAns {
    code: number;
    msg: string;
    data: Array<any>
}
export const buyTic = (time: string) => {
    return request({
        url: '/tic/buy',
        method: 'post',
        data: {
            time
        }
    })
}

//查看自己已买的票
export interface searchTicAns {
    code: number;
    msg: string;
    data: Array<any>
}
export const searchTic = () => {
    return request({
        url: '/tic/search',
        method: 'get'
    })
}